package com.example.yuejian23.yuejian_23.model;

import com.example.yuejian23.yuejian_23.service.PeixunService;
import com.example.yuejian23.yuejian_23.service.ShaituService;

import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;

/**
 * Created by dong on 2017/11/7.
 */

public class PeixunModel {
    private Retrofit retrofit;
    public PeixunModel(){
        retrofit  = new Retrofit.Builder()
                .baseUrl("http://115.159.93.244/new18yuejian/api.php/")
                .addConverterFactory(GsonConverterFactory.create())
                .build();
    }

    public retrofit2.Call peixun(String ccid)
    {
        PeixunService peixunService=retrofit.create(PeixunService.class);
        return peixunService.getxiang(ccid);
    }
}
